<ion-modal-view ng-controller="${widgetCode}Ctrl">
  <ion-header-bar class="bar bar-header bar-{{userPreferColorCSS}}">
	 <button ng-click="closeModal()" class="button back-button buttons button-clear header-item">
		<i class="icon ion-android-arrow-back"></i> 
     </button>   
     <h1 class="title">周期定义</h1>
  	 <button class="button button-{{btnColorCSS}}" ng-disabled="weektime.stime == '' || weektime.etime == ''  || weektime.standDay == ''" 
  	 ng-show="showSave"
  	 ng-click="updateWorkTimeInfo()">保存</button>
  </ion-header-bar>
  <ion-content>
	<div class="list">
	    <label class="item item-input input-size">开始日期
	      <input class="input-text-center-normal" type= "date" ng-model="weektime.stime"/>
	    </label>
	    <label class="item item-input input-size">结束日期
	      <input class="input-text-center-normal" type= "date" ng-model="weektime.etime"/>
	    </label>
	    <label class="item item-input input-size">工作天数
	      <input class="input-text-center-normal" type="text" ng-model="weektime.standDay">
	    </label>
	     <div class="padding">
		   <button ng-disabled="!weektime.stime || !weektime.etime" class="button button-block button-positive" 
		   ng-show="showSave"
		   ng-click="calculateStandDay(weektime.stime, weektime.etime)">计算</button>
	  	</div>
	</div>
  </ion-content>
</ion-modal-view>